<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <h2>书库列表</h2>
    <table>
      <% for (let i = 0; i < res.length; i++) { %>
      <tr>
        <th>id</th>
        <th>catalogid</th>
        <th>bookname</th>
        <th>price</th>
        <th>picture</th>
      </tr>
      <tr>
        <td><%= res[i].bookid %></td>
        <td><%= res[i].catalogid %></td>
        <td><%= res[i].bookname %></td>
        <td><%= res[i].price %></td>
        <td><%= res[i].picture %></td>
        <td>
          <a href="#">编辑</a>
          <a href="#">删除</a>
        </td>
      </tr>
      <% } %>
    </table>
  </body>
</html>
